Xbasic
UNMASK Function
Syntax
Un_Formatted_String as C = UNMASK(C string,C template)
Arguments
- string
A character string generated by the MASK() function.
- template
A character string containing formatting and space characters. Any non-space character may be used for formatting.
Description
Extract characters that match placeholder space charaters of template.
Discussion
UNMASK() removes the template characters from the formatted string, which may have been created by MASK(). If the template is not represented exactly in the string, the function returns only the portion of the string that matches the template.
Example
unmask("(617) 555-1212", "( )| - ") -> "6175551212" unmask("(617) 555-1212", "( ) - ") -> "", because TemplateString is not identical to the template in CharacterExpression
See Also